<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<body>
	<script type="text/javascript">
		$(function() {
			$("#menu_tree").tree({
				fit:true,
				parentField:"pid",
				url:"menu/tree.action",
				animate:true,
				//checkbox:true,
				onClick:function(node) {
					$("#menu_datagrid").datagrid("load", {pid:node.id});
				}
			});
		});
	</script>
	
	<ul id="menu_tree"></ul>
</body>